<%--
 *  File:    OrgCopySummary.jsp
 *  @Author: Kent Zhong 
 *  Date:    3/3/2005 3:41PM
 *
 *  Copyright (C) 2000 - 2005 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>
 

<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>


<%
  	Category cat = Category.getInstance("jsp.OrgCopySummary");  
%>

<%
	String strModuleName = "IMG";
	String privilegeCode = "Z0821";
  	
  	
%>


<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/FrmDefault.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>

<html>
<head>
<title>OrgCopySummary</title>
<PageFlow:CheckPageFlow pageName="orgcopyheader"/>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="../css/<%= strLanguageCode %>/script.js"></script>
<%
  String strIsNew=(String)pageContext.getAttribute("isnew");
  boolean isNew="Y".equals(strIsNew);
%>
<SCRIPT language=JavaScript>
function betlink(sClass, vValue)
{
	ccs=thisform.trname.value;
	trs=thisform.sclassnamea.value;
	ccs1=eval(ccs);
	ccs1.className=trs;
	document.thisform.sclassnamea.value = sClass;
	document.thisform.trname.value = vValue;
}
function page_actiondown(url)
{
  parent.down.location.href=url;
}
function page_doorgcopy()
{
  var flag = confirm("<%= message.getMessageDesc("ARE_YOU_SURE") %>");
  if(!flag)
    return;
  thisform.actionname.value = "docopy";
  thisform.target = "_parent";
  isRunning = true;
  thisform.submit();
}
function page_submit()
{
  var flag = confirm("<%= message.getMessageDesc("ARE_YOU_SURE") %>");
  if(!flag)
    return;
  thisform.actionname.value = "submit";
  thisform.target = "_parent";
  isRunning = true;
  thisform.submit();
}
function page_statusback()
{
  var flag = confirm("<%= message.getMessageDesc("ARE_YOU_SURE") %>");
  if(!flag)
    return;
  thisform.actionname.value = "statusback";
  thisform.target = "_parent";
  isRunning = true;
  thisform.submit();
}
</SCRIPT>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<form name="thisform" method="post" action="../Dispatcher"  target="_parent">
    <input type="hidden" name="pagename" value="orgcopyheader">
    <input type="hidden" name="actionname">
    <custom:hidden property="isnew"/>
    <custom:hidden property="orgcopyid"/>
    
<table width="100%" cellspacing="0" cellpadding="0" >
  <tr>
     <td class="summary_top" ></td>
  </tr>
  <tr> 
    <td class="title-big-b-center" colspan="2"><%=label.getLabelName("L_OrgCopy")%></td>
  </tr>
    <tr>
      <td class="summary_top" ></td>
    </tr>
    <tr> 
      <td colspan="2">&nbsp
      <%if(!isNew){%>
        <%=label.getLabelName("L_CopySourceOrg")+label.getLabelName("L_Colon")%>
        <custom:write name="sourceorginfo" property="orgname" nbsp="true"/>
      <%}%>  
      </td>
    </tr>
    <tr> 
      <td valign="bottom" colspan="2"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td style="PADDING-BOTTOM: 0px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 0px" class="black_line"> 
              <table border=0 cellpadding=0 cellspacing=0  width="100%">
                <tr> 
                  <td class=black_line height="1"></td>
                </tr>
                <tbody> 
                <tr> 
                  <td bgcolor=#ffffff class=m_title>&nbsp;</td>
                </tr>
                <tr> 
                  <td background=../images/<%= strLanguageCode %>/M_bg.gif  bgcolor=#ffffff valign="bottom"> 
                    <table border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td><img src="../images/<%= strLanguageCode %>/M_bg.gif" width="1" height="20"></td>
                        <td id=A01  valign="bottom" background="../images/<%= strLanguageCode %>/mark_bg.gif" width="75" class="hand" onClick="javascript:betlink('none','A01');this.className='clickred';page_actiondown('OrgCopyEdit.jsp?<%= OvalTools.randomURL() %>&isnew=<custom:write property="isnew"/>&orgcopyid=<custom:write property="orgcopyid"/>')"> 
                          <div align="center"><%=label.getLabelName("L_Summary")%></div> 
                        </td>
                        <%if(!isNew){%>
                        <td id=A03 valign="bottom" width="75" background="../images/<%= strLanguageCode %>/mark_bg.gif" class="hand" onClick="javascript:betlink('none','A03');this.className='clickred';page_actiondown('ORGCopyUser.jsp?<%= OvalTools.randomURL() %>&orgcopyid=<custom:write property="orgcopyid"/>')" > 
                          <div align="center"><%=label.getLabelName("L_UserInfo")%></div>
                        </td>
                        <td id=A05 valign="bottom" width="75" background="../images/<%= strLanguageCode %>/mark_bg.gif" class="hand" onClick="javascript:betlink('none','A05');this.className='clickred';page_actiondown('ORGCopyAddress.jsp?<%= OvalTools.randomURL() %>&orgcopyid=<custom:write property="orgcopyid"/>')" > 
                          <div align="center"><%=label.getLabelName("L_Address")%></div>
                        </td>
                        <td id=A04 valign="bottom" width="75" background="../images/<%= strLanguageCode %>/mark_bg.gif" class="hand" onClick="javascript:betlink('none','A04');this.className='clickred';page_actiondown('ORGCopyContact.jsp?<%= OvalTools.randomURL() %>&orgcopyid=<custom:write property="orgcopyid"/>')" > 
                          <div align="center"><%=label.getLabelName("L_Contacter")%></div>
                        </td>
                        
                        <td id=A06 valign="bottom" width="75" background="../images/<%= strLanguageCode %>/mark_bg.gif" class="hand" onClick="javascript:betlink('none','A06');this.className='clickred';page_actiondown('ORGCopyWarehouse.jsp?<%= OvalTools.randomURL() %>&orgcopyid=<custom:write property="orgcopyid"/>')" > 
                          <div align="center"><%=label.getLabelName("L_Warehouse")%></div>
                        </td>
                        <td id=A07 valign="bottom" width="75" background="../images/<%= strLanguageCode %>/mark_bg.gif" class="hand" onClick="javascript:betlink('none','A07');this.className='clickred';page_actiondown('ORGCopyER.jsp?<%= OvalTools.randomURL() %>&orgcopyid=<custom:write property="orgcopyid"/>')" >
                          <div align="center"><%=label.getLabelName("L_OrgRelation")%></div>
                        </td>
                        <%}%>
                        <td valign="bottom" width="50"> 
                          <input type="hidden" name="sclassnamea" value="white_bg">
                          <input type="hidden" name="trname" value="A01">
                        </td>
                        <td valign="bottom">&nbsp;</td>
                        <td valign="bottom">&nbsp;</td>
                        <td valign="bottom">&nbsp;</td>
                      </tr>
                    </table>
                  </td>
                </tr>
                </tbody> 
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  
</table>
</form>
</body>
</html>
